<?php
/**
 * SocialEngine
 *
 * @category   Application_Core
 * @package    Core
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 * @version    $Id: Create.php 7244 2010-09-01 01:49:53Z john $
 * @author     John
 */

/**
 * @category   Application_Core
 * @package    Core
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 */
class Core_Form_Link_Create extends Engine_Form {
	public function init() {
		$this->addElement ( 'Text', 'uri', array ('required' => true, 'allowEmpty' => false, 'filters' => array (new Engine_Filter_HtmlSpecialChars (), new Engine_Filter_Censor () ) ) );
		
		$this->addElement ( 'Text', 'title', array ('required' => true, 'allowEmpty' => false, 'filters' => array (new Engine_Filter_Censor (), new Engine_Filter_HtmlSpecialChars () ) ) );
		
		$this->addElement ( 'Text', 'description', array ('filters' => array (new Engine_Filter_Censor (), new Engine_Filter_HtmlSpecialChars () ) ) );
		
		$this->addElement ( 'Hidden', 'thumbnail' );
	}
}